//
//  MajorTestViewController.m
//  AndCampus
//
//  Created by 史宵宵 on 2018/3/27.
//  Copyright © 2018年 史宵宵. All rights reserved.
//

#import "MajorTestViewController.h"
#import "TestSelectViewController.h"
#import "ProduceTestViewController.h"

@interface MajorTestViewController ()

@end

@implementation MajorTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"专业测评";
    UIImage *image = [UIImage imageNamed:@"evaluation_bg"];
    self.view.layer.contents = (id) image.CGImage;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)adultTest:(id)sender {
    [self enterProduceVC:@"1"];
}
- (IBAction)childrenTest:(id)sender {
    [self enterProduceVC:@"2"];
}
- (IBAction)professionTest:(id)sender {
    [self enterProduceVC:@"3"];
}
- (IBAction)intelligenceTest:(id)sender {
    [self enterProduceVC:@"4"];
}
- (IBAction)professionalCharacterTest:(id)sender {
    [self enterProduceVC:@"5"];
}

- (void)enterProduceVC:(NSString *)type{
    ProduceTestViewController *produceTestVC = [[ProduceTestViewController alloc]init];
    produceTestVC.testType = type;
    [self.navigationController pushViewController:produceTestVC animated:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
